﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="PPAP.Web.Part.Report" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <!-- 插入打印控件 -->
    <%--<object id="jatoolsPrinter" codebase="jatoolsP.cab#version=1,1,6,1" classid="CLSID:B43D3361-D975-4BE2-87FE-057188254255"
        viewastext>
    </object>--%><%--<OBJECT ID="jatoolsPrinter" CLASSID="CLSID:B43D3361-D075-4BE2-87FE-057188254255"  
codebase="jatoolsPrinter.cab#version=5,7,0,0"></OBJECT>--%>
    <script language="javascript">
        function doPrint(how) {

            if (typeof (jatoolsPrinter.page_div_prefix) == 'undefined') {
                alert("请按页顶上的黄色提示下载ActiveX控件.如果没有提示请按以下步骤设置ie.\n 工具-> internet 选项->安全->自定义级别,设置 ‘下载未签名的 ActiveX ’为'启用'状态")
                return;
            }
            //打印文档对象
            var myreport = {
                documents: document,    // 打印页面(div)们在本文档中
                copyrights: '杰创软件拥有版权 www.jatools.com'         // 版权声明必须
            };

            // 调用打印方法
            if (how == 'Preview...')
                jatoolsPrinter.printPreview(myreport); 	// 打印预览

            else if (how == 'Print...')
                jatoolsPrinter.print(myreport, true); 		// 打印前弹出打印设置对话框

            else
                jatoolsPrinter.print(myreport, false);       // 不弹出对话框打印
        }
    </script>
    <style media="print">
        .Noprint
        {
            display: none;
        }
        UNKNOWN
        {
            page-break-after: always;
        }
    </style>
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
    <form id="form1" runat="server">
    <div class="Noprint">
        <table width="100%" align="center" width="780px">
            <tr>
                <td colspan="4" style="height: 30px; background-color: #FFFFCC">
                    <img src="../Images/newimg/tishi.png" style="vertical-align: middle;" />
                    To Print this page, please click Print in File(F) menu.
                </td>
            </tr>
        </table>
    </div>
    <table align="center" width="780px" border="0" style="display: none;">
        <tr>
            <td align="right" width="100%" colspan="2">
                <input onclick="doPrint('Preview...')" type="button" value="Preview" class="button" />
                <input onclick="doPrint('Print...')" type="button" value="Print" class="button" />
            </td>
        </tr>
    </table>
    <div id="page1" style="width: 100%;">
        <!--<div class="Noprint">
				<p>
					<table cellSpacing="0" cellPadding="0" width="100%" border="0">
						<tr>
							<td align="center" width="100%" colSpan="2">
								<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
								</OBJECT>
								<input id="btnPrint" onclick="document.all.WebBrowser.ExecWB(6,6)" class="button" type="button" value="Print" />
								<input id="btnSet" onclick="document.all.WebBrowser.ExecWB(8,1)" class="button" type="button" value="Set" />
								<input id="btnView" onclick="document.all.WebBrowser.ExecWB(7,1)" class="button" type="button" value="Preview" />
							</td>
						</tr>
					</table>
				</p>
			</div>-->
        <table width="780px" align="center" style="border-color: #2A48CE; border: 1px; border-style: solid;
            border-color: Gray; border-spacing: 0px;">
            <tr>
                <td>
                    <table width="750px" cellspacing="4" align="center">
                        <tr>
                            <td colspan="4" align="center">
                                <img src="../Images/denza_logo.jpg" alt='logo' />
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                &nbsp;
                            </td>
                        </tr>
                        <tr style="padding-top: 15px;">
                            <td style="width: 20%;">
                                &nbsp;
                            </td>
                            <td style="width: 30%;" valign="top">
                                &nbsp;
                            </td>
                            <td>
                                Contact person:
                            </td>
                            <td>
                                <asp:Label ID="lblPerson" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                Supplier Code:
                            </td>
                            <td>
                                <asp:Label ID="lblSupplierNo" runat="server"></asp:Label>
                            </td>
                            <td>
                                Department:
                            </td>
                            <td>
                                <asp:Label ID="lblDepartment" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                Supplier name:
                            </td>
                            <td>
                                <asp:Label ID="lblSupplierName" runat="server"></asp:Label>
                            </td>
                            <td>
                                Telephone:
                            </td>
                            <td>
                                <asp:Label ID="lblTelephone" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Manufacturing plant:
                            </td>
                            <td>
                                <asp:Label ID="lblPlantName" runat="server"></asp:Label>
                            </td>
                            <td>
                                Email:
                            </td>
                            <td>
                                <asp:Label ID="lblEmail" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Contact person:
                            </td>
                            <td>
                                <asp:Label ID="lblConper" runat="server"></asp:Label>
                            </td>
                            <td>
                                Date:
                            </td>
                            <td>
                                <asp:Label ID="lblDate" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <hr style="width: 780px; height: 2px; text-align: left;" />
                    <table width="750px" align="center">
                        <tr>
                            <td style="font-weight: bold; color: #2E8AC5; font-size: medium;">
                                &nbsp;
                                <asp:Label ID="lblTestReport" runat="server" Visible="False"></asp:Label>
                                <br />
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%"  style="font-weight: bold; color: #2E8AC5; font-size: medium;">
                                    <tr>
                                        <td>
                                            PPAR no.:</td><td>
                                            <asp:Label ID="lblPPARNO" runat="server"></asp:Label>
                                        </td>
                                        <td>
                                        Part no.:</td><td>
                                            <asp:Label ID="lblPNO" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                            Part name:</td><td><asp:Label ID="lblPName" runat="server"></asp:Label>
                                        </td>
                                        <td>
                                            Revision no.:</td><td>
                                            <asp:Label ID="lblRevisionNo" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                            Q\E-Level:</td><td>
                                            <asp:Label ID="lblQLevel" runat="server"></asp:Label>
                                        </td>
                                        <td>
                                            Color code:</td><td>
                                            <asp:Label ID="lblColor" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                            <br /><br />
                            <div  style="border: 1pt solid #2E8AC5; padding:15px 5px; text-align:left;  width:750px;word-wrap : break-word;word-break: break-all; overflow:hidden; " runat="server" id="txtDecision"></div>
                                <%--<asp:TextBox ID="txtDecision" runat="server" BorderWidth="2px" Height="127px" Width="750px"
                                    BorderColor="Silver" Text="Decision:"  TextMode="MultiLine"  style="word-wrap : break-word;word-break: break-all; overflow:hidden; " ReadOnly="True"></asp:TextBox>--%>
                                <br />
                                <br />
                                <div  style="border: 1pt solid #2E8AC5; padding:15px 5px;  text-align:left; width:750px;word-wrap : break-word;word-break: break-all; overflow:hidden; " runat="server" id="txtExplanation"></div>
                                <%--<asp:TextBox ID="txtExplanation" BorderColor="Silver" BorderWidth="2px" runat="server"
                                    Height="124px" Width="750px"  TextMode="MultiLine"  style="word-wrap : break-word;word-break: break-all; overflow:hidden; " ReadOnly="True"></asp:TextBox>
                                --%><br />
                                <br />
                            </td>
                        </tr>
                        <%--                        <tr>
                            <td align="right" style="padding-right: 80px;">
                                Digital Signature:
                            </td>
                        </tr>--%>
                        <tr>
                            <td align="right" style="padding-right: 80px;">
                                <asp:Label ID="lblQM" runat="server" Visible="False"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding-right: 80px;">
                                <asp:Image ID="imgvp" runat="server" ImageUrl="~/Part/image/markus.png" Width="120px" />
                                <br />
                                Vice President Quality BDNT
                             </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <br />
                                <br />
                                <br />
                                This document is generated automatically and is valid without signature.
                                <br />
                            </td>
                        </tr>
                    </table>
                    <table width="780px">
                        <tr>
                            <td>
                                <br />
                                <asp:Label ID="lblTestReport0" runat="server"></asp:Label>
                            </td>
                            <td align="right">
                                <br />
                                <asp:Label ID="lblTime" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script language="javascript">
        window.print();
    </script>
</body>
</html>
